"""
字典生成式
"""

items = ["Fruits", "Books", "Others"]
prices = [100, 90, 85, 90, 95]

# 长度不同时，以短的为标准进行压缩生成字典
my_dict = {item: price for item, price in zip(items, prices)}
print(my_dict)
